﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Police
{
    /// <summary>
    /// Interface to implement for pre-commit validator.
    /// </summary>
    public interface IPreCommitValidator 
    {
        /// <summary>
        /// Validate current transaction id associated with specified repository path.
        /// </summary>
        /// <param name="transactionId"></param>
        /// <param name="repositoryPath"></param>
        /// <returns>Returns response generated by validator.</returns>
        PreCommitValidationResponse Work(String transactionId, String repositoryPath);
    }
}
